package xyz.lxbq.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xyz.lxbq.mapper.DepartMapper;
import xyz.lxbq.pojo.Depart;
import xyz.lxbq.service.DepartServicr;

import java.util.List;

/**
 * @author XuHu
 * @version 1.0
 * @date 2020/10/15 13:24
 */
@Service
public class DepartServicrImpl implements DepartServicr {
    @Autowired
    DepartMapper departMapper;

    @Override
    public int addDepare(Depart depart) {
        return departMapper.addDepare(depart);
    }

    @Override
    public int getALlDepareCount() {
        return departMapper.getALlDepareCount();
    }

    @Override
    public List<Depart> getDepartPage(int pageStart, int pageSize) {
        return departMapper.getDepartPage(pageStart,pageSize);
    }

    @Override
    public int deletedDepare(int id) {
        return departMapper.deletedDepare(id);
    }

    @Override
    public List<Depart> getAllDepare() {
        return departMapper.getAllDepare();
    }
}
